x86/pv-shim: correct ballooning up for compat guests
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Mon, 31 Oct 2022 12:28:15 +0000 (13:28 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 31 Oct 2022 12:28:15 +0000 (13:28 +0100)
commit2f75e3654f00a62bd1f446a7424ccd56750a2e15
treebbbc9750a099286e8a8f365a76deb8c8ae1082d5
parent08f6c88405a4406cac5b90e8d9873258dc445006
x86/pv-shim: correct ballooning up for compat guests

The compat layer for multi-extent memory ops may need to split incoming
requests. Since the guest handles in the interface structures may not be
altered, it does so by leveraging do_memory_op()'s continuation
handling: It hands on non-initial requests with a non-zero start extent,
with the (native) handle suitably adjusted down. As a result
do_memory_op() sees only the first of potentially several requests with
start extent being zero. It's only that case when the function would
issue a call to pv_shim_online_memory(), yet the range then covers only
the first sub-range that results from the split.

Address that breakage by making a complementary call to
pv_shim_online_memory() in compat layer.

Fixes: b2245acc60c3 ("xen/pvshim: memory hotplug")
Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: a0bfdd201ea12aa5679bb8944d63a4e0d3c23160
master date: 2022-10-28 15:48:50 +0200
xen/common/compat/memory.c